 @model  IList<OA.Model.Chat>
 @{
     ViewBag.Title = "历史记录";
}
@section head{
}
@section body{
<body class="easyui-layout chat_send_body" data-options="fit:true"  >
    <div data-options="region:'center',border:false">
         @foreach(var i in Model)
         {
             <div class="historyitem">
             @if(i.SendUserName == OA.BLL.LoginUser.LoginManager.UserName)
             {
                 <span class="sendfrom">
                    @i.Send.RealName &nbsp;@OA.UI.Utils.FormateDate(i.SendTime)
                 </span>
             }
             else
             {
                 <span class="receivedfrom">
                    @i.Send.RealName &nbsp;@OA.UI.Utils.FormateDate(i.SendTime)
                 </span>
             }

             <div class="msg">
                @Html.Raw(i.Message)
             </div>
             </div>
         }
    </div>
    <div  data-options="region:'south',border:false" style=" height:28px;">
        <div class="hr"></div>
        <div class="historyPage">
            @Html.Raw(ViewBag.PageLink)
       </div>
    </div>
</body>
}